Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ledgerhq/logs

Package Overview
Dependencies
Maintainers
21
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/logs

Ledger logs central point

  • 6.12.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
21
Created

What is @ledgerhq/logs?

@ledgerhq/logs is an npm package designed to facilitate logging within applications that interact with Ledger hardware wallets. It provides a simple and consistent way to log messages, which can be useful for debugging and monitoring the behavior of applications.

What are @ledgerhq/logs's main functionalities?

Basic Logging

This feature allows you to log messages with a specific type and level. In this example, 'apdu' is the type, 'message' is the content, and 'debug' is the level of the log.

const { log } = require('@ledgerhq/logs');
log('apdu', 'message', 'debug');

Custom Log Listener

You can set up a custom listener to handle log messages. This example demonstrates how to listen for log events and print them to the console.

const { listen } = require('@ledgerhq/logs');
listen(log => {
  console.log(log.type, log.message, log.level);
});

Other packages similar to @ledgerhq/logs

Keywords

FAQs

Package last updated on 24 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc